const routes = [
  { path: '/', redirect: '/login' },
  //测试
  { path: '/dva', component: '@/layouts/dva' },
  {
    path: '/login',
    component: '@/layouts/login/index',
  },
  {
    path: '/layout',
    component: '@/layouts/layout/index',
    wrappers: ['@/wrappers/auth'],
    routes: [
      //创建活动
      {
        path: '/layout/createActivity',
        component: '@/pages/activebarSecond/index',
      },
      //添加活动
      {
        path: '/layout/addBasic',
        component: '@/pages/activebarSecond/addActivies/index',
      },
      //活动详情  postDetail
      {
        path: '/layout/deDetail',
        component: '@/pages/activebarSecond/deDetail/index',
      },
      //活动评论
      {
        path: '/layout/activityComment',
        component: '@/pages/comment/index',
      },
      //抽奖白名单
      {
        path: '/layout/lotteryWhiteList',
        component: '@/pages/lotteryWhiteList/index',
      },
      //管理员目录   =>

      //活动管理
      {
        path: '/layout/activityManagement',
        component: '@/pages/activityManagement/index',
      },
      //评论管理
      {
        path: '/layout/commentManagement',
        component: '@/pages/commentManagement/index',
      },
      //小程序配置
      //尾部广告
      {
        path: '/layout/advertConfig',
        component: '@/pages/activityConfiguration/advertConfig',
      },
      //首页banner
      {
        path: '/layout/activitySquare',
        component: '@/pages/activityConfiguration/activitySquare/index.tsx',
      },
      //用户管理
      {
        path: '/layout/userManage',
        component: '@/pages/userManage/index',
      },
      //系统设置
      //分行管理
      {
        path: '/layout/branchManage',
        component: '@/pages/systemManage/index',
      },
    ],
  },
  { path: '*', component: '@/layouts/notfound/index' },
];

export default routes;
